#ifndef DLGEXPORTLEASE_H
#define DLGEXPORTLEASE_H

#include <QDialog>
#include <dlgsettings.h>
#include <housingdbms.h>

#ifdef Q_OS_WIN
#include "sleeword.h"
#endif

namespace Ui {
    class DlgExportLease;
}

class DlgExportLease : public QDialog
{
    Q_OBJECT
    HousingDBMS *mp_dbms;
    DlgSettings *mp_settings;
    SLEE_HDB_REC mqh_lease;
#ifdef Q_OS_WIN
    void replace(SleeWordDoc *p_doc, QString qstr_target, QString qstr_new);
#endif
public:
    explicit DlgExportLease(HousingDBMS *p_dbms, DlgSettings *p_settings, QWidget *parent = 0);
    ~DlgExportLease();

private slots:
    void on_chb_show_word_clicked(bool checked);
    void generate_lease();
public slots:
    int exec(const SLEE_HDB_REC &qh_lease);
private:
    Ui::DlgExportLease *ui;
};

#endif // DLGEXPORTLEASE_H
